// 此文件封装三个方法，专门用于操作token
import { setStorage, getStorage, removeStorage } from '@/utils/storage.js'

const key = 'geek-itheima'

export const setToken = (token) => {
  setStorage(key, token)
}

export const getToken = () => {
  return getStorage(key)
}

export const removeToken = () => {
  removeStorage(key)
}
